﻿using System;
using NLog;

namespace Smugmug
{
    public class NLogLogger : ILogger
    {
        private Logger logger;

        public NLogLogger()
        {
            logger = LogManager.GetCurrentClassLogger();
        }

        #region ILogger Members

        public void Info(string message)
        {
            logger.Info(message);
        }

        public void Info(string format, params object[] args)
        {
            logger.Info(format, args);
        }

        public void Trace(string message)
        {
            logger.Trace(message);
        }

        public void Trace(string format, params object[] args)
        {
            logger.Trace(format, args);
        }

        public void Debug(string message)
        {
            logger.Debug(message);
        }

        public void Debug(string format, params object[] args)
        {
            logger.Debug(format, args);
        }

        public void Warn(string message)
        {
            logger.Warn(message);
        }

        public void Warn(string format, params object[] args)
        {
            logger.Warn(format, args);
        }

        public void Warn(Exception e)
        {
            logger.Warn(e);
        }

        public void Fatal(string message)
        {
            logger.Fatal(message);
        }

        public void Fatal(string format, params object[] args)
        {
            logger.Fatal(format, args);
        }

        public void Fatal(Exception e)
        {
            logger.Fatal(e);
        }

        #endregion
    }
}